#! /bin/bash
wget http://labs.renren.com/apache-mirror/cassandra/0.6.1/apache-cassandra-0.6.1-bin.tar.gz
tar -zxvf apache-cassandra-0.6.1-bin.tar.gz 
cd apache-cassandra-0.6.1/
sudo mkdir -p /var/log/cassandra
sudo chown -R `whoami` /var/log/cassandra
sudo mkdir -p /var/lib/cassandra
sudo chown -R `whoami` /var/lib/cassandra
mvn install:install-file -Dfile=lib/apache-cassandra-0.6.1.jar -DgroupId=org.apache.cassandra -DartifactId=apache-cassandra -Dversion=0.6.1 -Dpackaging=jar
mvn install:install-file -Dfile=lib/libthrift-r917130.jar -DgroupId=org.apache.thrift -DartifactId=libthrift -Dversion=r917130 -Dpackaging=jar


